package com.dao;

import com.pojo.Book;

import java.util.List;

public interface BookDao {
    public int addBook(Book book);
    public int deleteBookById(Integer id);
    public int updateBook(Book book);
    public Book queryBookById(Integer id);
    public List<Book> queryBooks();
    public Integer queryForPageTotalCount();
    public List<Book> queryForPageItems(int begin,int pageSize);
    public Integer queryForPageTotalCountByPrice(int min,int max);
    public List<Book> queryForPageItemsByPrice(int min,int max,int begin,int pageSize);
}
